<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let per = {
        gender: "男",
        age: 18,
        hobby: "篮球",
        say: function () {
          const saying = "大声说"
          return saying
        },
        eat: function () {
          const eating = "用盆干饭"
          return eating
        },
      }

      console.log(`
      对象的性别为：${per.gender}
      对象的年龄为：${per.age}
      对象的爱好为：${per.hobby}
      对象的说话方法为：${per.say()}
      对象的吃饭方法为：${per.eat()}
      `)
    </script>
  </body>
</html>
